#include <iostream>
using namespace std;

int main()
{
  
  int k = 10, l = 10
	int p[k] [l];
	
	for (int i = 0; i < 10; i++)
     for (int j = 0; j < 10; j++)
       {
          cin>>p[i] [j];
       }
		
	
	cout<<p[][]<<endl;
	
	return 0;
}
